{include file="general/header.tpl"}
<div id="path">
	You are here: <a href="/index.php">Home</a> &raquo; <a href="index.php">Administration</a> &raquo; <a href="news_comment.php">My News Comments</a>
</div>
<div id="main">
	{assign var="session_name" value=#SessionName#}
	<form action="news_comment.php" method="post">
		<div class="search-form-field">
			<label>Filter by comment:</label>
			<input type="text" name="news_comment" value="{$smarty.session.$session_name.mynewscomment_search_string|escape}" /> <input type="submit" name="{$smarty.const.PAGINATION_RESET_FIELD_NAME}" value="Search" /> ({$smarty.const.WILDCARD_SIGN} for wildcards)
		</div>
	</form>
	{if $delete_news_comment}
		<br />
		<div class="success">News comment has been deleted successfully.</div>
	{/if}
	<br />
	{if $paginate.total > 0 && $paginate.current_item <= $paginate.total}
		<div class="center">
			{include file="general/pagination_item_range.tpl"}
			<br /><br />
		</div>
	{/if}
	<table>
		<tr>
			<td class="item_header_cell numbers">#</td>
			<td class="item_header_cell no-overflow">News comment</td>
			<td class="item_header_cell actions">Action</td>
		</tr>
		{counter start=$paginate.first-1 print=false}
		{foreach $news_comments as $news_comment}
			<tr>
				<td class="item_cell numbers">{counter skip="0"}.</td>
				<td class="item_cell no-overflow">{$news_comment.comment}</td>
				<td class="item_cell actions"><a href="news_comment_edit.php?id={$news_comment.id}"><img src="../images/edit.gif" alt="Edit" title="Edit" /></a> <a href="?delete={$news_comment.id}" onclick="if (!confirm('Are you sure you want to delete this news comment?\n\n{counter skip="1"}. {$news_comment.comment}')) return false;"><img src="../images/delete.gif" alt="Delete" title="Delete" /></a></td>
			</tr>
		{foreachelse}
			<tr><td colspan="3"><p class="center">No news comment matches found in the database.</p></td></tr>
		{/foreach}
	</table>
	{if $news_comment@show}
		<div class="center">
			<br />
			{include file="general/pagination_page_number.tpl"}
		</div>
	{/if}
</div>
{include file="general/left.tpl"}
{include file="general/footer.tpl"}